package com.campus.common.mapper;

import com.campus.common.domain.FriendRequest;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface FriendRequestMapper {
    @Select(" select * from friend_request where sender_id = #{senderId} and receiver_id = #{recieverId}")
    public FriendRequest selectFriendRequest(FriendRequest friendRequest);
    @Insert("insert into friend_request(sender_id, receiver_id, nickname, content) values (#{senderId}, #{receiverId}, #{nickname}, #{content})")
    public void insertFriendRequest(FriendRequest friendRequest);

}
